#include <stdio.h>
#include <math.h>
#include <stdlib.h>

typedef struct {
	float x;
	float y;
} point;

int main() {

	int num, i;
	scanf("%d", &num);
	int *years = malloc(num);
	for (i = 0; i < num; i++) {
		point p;
		int year;
		scanf("%f %f", &p.x, &p.y);
		year =(int)(((pow(p.x, 2) + pow(p.y, 2)) * M_PI) / 100) + 1;
		years[i] = year;
	}
	for (i = 0; i < num; i++) {
		printf("Property %d: This property will begin eroding in year %d.\n", i+1, years[i]);
	}
	printf("END OF OUTPUT.\n");

	free(years);
	return 0;
}